package cn.edu.ncut.cs.springboot.springsecuritydemo.service;

import cn.edu.ncut.cs.springboot.springsecuritydemo.entity.Role;
import cn.edu.ncut.cs.springboot.springsecuritydemo.entity.User;

import java.util.List;

public interface SystemService {
    List<User> findAllUsers();
    User findUserById(Long id);
    User findUserByUsername(String username);
    boolean assignRolesToUser(Long userId, List<Long> roleIds);
    boolean removeRolesFromUser(Long userId, List<Long> roleIds);
    List<Role> getRolesByUserId(Long userId);
}
